<?php

namespace app\service;

use think\facade\Lang;


class AppService
{
    public static function getTizhiPrdict() {
        return [
            # 体质与天干年份的叠加影响
            'tizhi_and_tiangan' => [
                [0, [Lang::get('rabbit'), Lang::get('chicken')], Lang::get('should_moisturize_the_lungs_and_nourish_yin_lily_of_the_valley_maitake')],
                [1, [Lang::get('dragon'), Lang::get('dog')], Lang::get('needs_to_warm_the_kidneys_and_dissipate_cold_cinnamon_moxa')],
                [4, [Lang::get('cow'), Lang::get('sheep')], Lang::get('easily_stagnated_in_stomach_and_intestines_need_to_strengthen_the_spleen_and_dispel_dampness_poria_atractylodes_macrocephala')],
            ],
            # 六气客主加临的病理特点
            'six_qi' => [
                [[Lang::get('tiger'), Lang::get('monkey')], Lang::get('prone_to_eye_deficits_and_headaches')],
                [[Lang::get('dragon'), Lang::get('dog'), Lang::get('cow'), Lang::get('sheep')], Lang::get('diarrhea_aggravated')],
            ],
            # 季节调护重点
            'season' => [
                [[Lang::get('snake'), Lang::get('pig')], Lang::get('spring_to_prevent_wind_avoid_staying_up_all_night_to_hurt_the_liver')],
                [[Lang::get('dragon'), Lang::get('dog')], Lang::get('keep_warm_in_winter_and_avoid_cold_food')],
                [[Lang::get('rabbit'), Lang::get('chicken')], Lang::get('increase_humidity_in_the_fall_eat_more_fungus_pears')],
            ],
            # 五运体质分类
            'five_yun' => [
                [0, Lang::get('symptoms_excessive_fire_in_the_lungs_may_lead_to_dry_skin_liver_depression_and_stagnation_of_qi_headaches_lung_diseases_itchy_skin_or_constipation_in_the_fall')],
                [1, Lang::get('symptoms_kidney_water_deficiency_leads_to_lumbar_and_knee_pain_reduced_menstrual_flow_cold_or_edema_in_winter_often_accompanied_by_tinnitus_and_memory_loss')],
                [2, Lang::get('symptoms_excessive_hyperactivity_of_the_liverwood_triggers_spleen_deficiency_and_dampness_manifesting_as_migraine_rheumatism_pain_emotional_irritability_and_eye_redness_swelling_and_pain_or_insomnia_in_spring_and_summer')],
                [3, Lang::get('symptoms_heart_yang_deficiency_causes_palpitations_fatigue_chest_tightness_and_shortness_of_breath_in_the_summer_pale_or_warm_hands_and_feet_serious_cardiovascular_and_cerebrovascular_problems')],
                [4, Lang::get('symptoms_bloating_and_constipation_due_to_congestion_in_the_spleen_and_stomach_frequent_urination_due_to_deficiency_of_the_kidneys_caused_by_earth_and_water_and_phlegmatic_obesity_or_eczema_during_the_long_summer_season')],
                [9, Lang::get('symptoms_spleen_deficiency_leads_to_diarrhea_and_indigestion_weak_earth_and_wood_cause_liver_depression_and_stress_pain_and_oedema_or_allergies_during_the_rainy_season')]
            ],
            # 六气体质分类
            'six_tizhi' => [
                [[Lang::get('dragon'), Lang::get('dog')], Lang::get('cold_and_dampness_are_prevalent_within_the_body_prone_to_cold_pain_and_edema_in_the_joints_aggravated_in_winter')],
                [[Lang::get('snake'), Lang::get('pig')], Lang::get('wind_and_wood_disturb_the_liver_qi_and_in_the_spring_there_are_many_cases_of_dizziness_convulsions_or_depression')],
                [[Lang::get('mouse'), Lang::get('horse')], Lang::get('heart_fire_is_overexcessive_and_is_prone_to_mouth_and_tongue_sores_and_insomnia_in_summer')],
                [[Lang::get('cow'), Lang::get('sheep')], Lang::get('dampness_traps_the_spleen_and_earth_resulting_in_abdominal_distension_and_phlegm_in_summer')],
                [[Lang::get('tiger'), Lang::get('monkey')], Lang::get('phase_fire_burns_the_bodys_fluids_making_acne_and_redness_of_the_eyes_easy_to_develop_exacerbated_by_dampness_and_heat_in_summer')],
                [[Lang::get('rabbit'), Lang::get('chicken')], Lang::get('dryness_injures_the_lungs_resulting_in_dry_coughs_and_cracked_skin_in_the_fall')],
            ],
            # 六气体质在不同年月的症状表现
            'six_tizhi_diff_month' => [
                [[Lang::get('mouse'), Lang::get('horse')], 0, [6], Lang::get('may_have_epistaxis_or_burning_skin')],
                [[Lang::get('mouse'), Lang::get('horse')], 1, [11, 12, 1], Lang::get('prone_to_frequent_night_urination_or_tinnitus')],
                [[Lang::get('mouse'), Lang::get('horse')], 4, [8, 9], Lang::get('it_is_prone_to_dampheat_diarrhea_or_mouth_sores')],
                [[Lang::get('cow'), Lang::get('sheep')], 2, [1, 2, 3], Lang::get('prone_to_joint_soreness_or_eczema')],
                [[Lang::get('cow'), Lang::get('sheep')], 3, [6, 7], Lang::get('frequent_palpitations_and_chest_tightness_weakness_of_the_limbs')],
                [[Lang::get('cow'), Lang::get('sheep')], 9, [8, 9], Lang::get('it_is_often_associated_with_abdominal_distension_loose_stools_or_edema')],
                [[Lang::get('tiger'), Lang::get('monkey')], 0, [10, 11], Lang::get('prone_to_dry_cough_without_phlegm_or_constipation')],
                [[Lang::get('tiger'), Lang::get('monkey')], 0, [10, 11], Lang::get('prone_to_dry_cough_without_phlegm_or_constipation')],
                [[Lang::get('tiger'), Lang::get('monkey')], 1, [11, 12, 1], Lang::get('possible_insomnia_and_night_sweats')],
                [[Lang::get('tiger'), Lang::get('monkey')], 3, [6, 7], Lang::get('lowgrade_fever_fatigue_or_red_tongue_with_little_coating')],
                [[Lang::get('rabbit'), Lang::get('chicken')], 2, [1, 2, 3], Lang::get('prone_to_dry_eyes_or_dry_throat')],
                [[Lang::get('rabbit'), Lang::get('chicken')], 4, [8, 9], Lang::get('may_alternate_between_constipation_and_diarrhea')],
                [[Lang::get('rabbit'), Lang::get('chicken')], 9, [10, 11], Lang::get('most_often_dry_or_cracked_skin')],
                [[Lang::get('dragon'), Lang::get('dog')], 0, [10, 11], Lang::get('it_is_prone_to_nasal_congestion_and_runny_nose_or_cold_joints')],
                [[Lang::get('dragon'), Lang::get('dog')], 3, [11, 12, 1], Lang::get('cold_hands_and_feet_or_chest_paralysis_are_common')],
                [[Lang::get('dragon'), Lang::get('dog')], 1, [1, 2], Lang::get('cold_and_oedema_worsened_easy_to_develop_lumbar_and_knee_weakness')],

                [[Lang::get('snake'), Lang::get('pig')], 2, [1, 2, 3], Lang::get('prone_to_headaches_dizziness_or_muscle_tremors')],
                [[Lang::get('snake'), Lang::get('pig')], 9, [8, 9], Lang::get('most_often_see_intestinal_tinnitus_diarrhea_or_allergic_rashes')],
                [[Lang::get('snake'), Lang::get('pig')], 0, [10, 11], Lang::get('prone_to_itchy_skin_or_dry_cough')],
            ]
        ];
    }

    public static function getPersonalConsultTmpl() {
        return [
            '1' => [
                'title' => Lang::get('project_prediction,'),
                'items' => [
                    '1' => Lang::get('in_the_meantime_how_about_i_do_the_s_program'),
                    '2' => Lang::get('what_is_the_next_step_in_the_development_of_my_s_program'),
                    '3' => Lang::get('status_quo_s'),
                ]
            ],
            '2' => [
                'title' => Lang::get('career_choice'),
                'items' => [
                    '4' => Lang::get('as_it_is_how_about_i_work_in_s_of_s_companies'),
                    '5' => Lang::get('what_is_the_next_step_in_the_development_of_my_s_program'),
                    '6' => Lang::get('how_will_learning_these_skills_help_me_in_my_career'),
                    '7' => Lang::get('status_quo_s'),
                ]
            ],
            '3' => [
                'title' => Lang::get('emotional_consultation'),
                'items' => [
                    '8' => Lang::get('whats_the_status_quo_whats_the_future_of_my_relationship_with_s'),
                    '9' => Lang::get('as_it_is_how_can_i_save_my_relationship_with_s'),
                    '10' => Lang::get('status_quo_s'),
                ]
            ],
            '4' => [
                'title' => Lang::get('publicity_audit'),
                'items' => [
                    '11' => Lang::get('what_can_i_do_to_fix_the_s_in_the_status_quo'),
                    '12' => Lang::get('how_does_the_status_quo_s_thing_help')
                ]
            ],
        ];
    }

    public static function getAreaInfo() {
        return [
            'west' => ['areas' => [Lang::get('province_option1'), Lang::get('province_option31')], 'description' => Lang::get('high_terrain_cold_susceptible_to_dietary_and_emotional_illnesses_mostly_born_in_the_body_more_qi_deficiency_yin_deficiency_less_yang_deficiency')],
            'north' => ['areas' => [Lang::get('province_option24'), Lang::get('province_option25'), Lang::get('province_option26'), Lang::get('province_option32'), Lang::get('province_option33'), Lang::get('province_option17'), Lang::get('province_option18'), Lang::get('province_option19'), Lang::get('province_option20'), Lang::get('province_option21'), Lang::get('province_option22'), Lang::get('province_option23'), Lang::get('province_option34')], 'description' => Lang::get('cold_climate_easy_to_fullness_dampheat_body_more_qi_deficiency_body_yang_deficiency_body_more')],
            'mid' => ['areas' => [Lang::get('province_option2'), Lang::get('province_option3'), Lang::get('province_option4')], 'description' => Lang::get('it_is_prone_to_weakness_of_the_limbs_syncope_chills_and_fever_and_lack_of_flow_of_qi_and_blood')],
            'east' => ['areas' => [Lang::get('province_option5'), Lang::get('province_option6'), Lang::get('province_option7'), Lang::get('province_option8'), Lang::get('province_option9'), Lang::get('province_option10'), Lang::get('province_option11'),Lang::get('province_option12')], 'description' => Lang::get('prone_to_skin_diseases_with_a_high_incidence_of_dampness_and_heat')],
            'south' => ['areas' => [Lang::get('province_option13'), Lang::get('province_option14'), Lang::get('province_option15'), Lang::get('province_option16'), Lang::get('province_option27'), Lang::get('province_option28'), Lang::get('province_option29'), Lang::get('province_option30')], 'description' => Lang::get('easy_to_cramp_numbness_of_limbs_heavy_dampness_diarrhea_dampheat_body_and_blood_stasis_body_are_more_common')],
        ];
    }

    public static function getAnimalIll(){
       return [
        Lang::get('rat_person'),
        Lang::get('cow_person'),
        Lang::get('tiger_person'),
        Lang::get('rabbit_person'),
        Lang::get('dragon_person'),
        Lang::get('snake_person'),
        Lang::get('horse_person'),
        Lang::get('sheep_person'),
        Lang::get('monkey_person'),
        Lang::get('chicken_person'),
        Lang::get('dog_person'),
        Lang::get('pig_person')
        ];
    }

    public static function getAnimalHotOrCold(){
        return [Lang::get('people_born_in_the_year_of_the_rat_or_horse_are_hot_scutellaria_baicalensis_mudanpi_tang_and_dry_astragalus_maitong_tang'), Lang::get('people_born_in_the_year_of_the_ox_and_the_year_of_the_goat_are_wet_jiu_gan_ling_ze_tang_and_cold_si_yi_chai_gui_tang'), Lang::get('people_born_in_the_year_of_the_tiger_or_monkey_have_the_constitution_of_fire_chai_shao_si_huang_tang_and_allergy_chai_hu_xian_du_li_zhong_tang'), Lang::get('people_born_in_the_year_of_the_rabbit_or_the_rooster_have_a_dry_astragalus_maitong_tang_and_hot_scutellaria_baicalensis_mudanpi_tang_constitution'), Lang::get('people_born_in_the_year_of_the_dragon_or_the_year_of_the_dog_are_cold_sibei_chai_gui_tang_and_wet_jiu_gan_ling_ze_tang'), '', Lang::get('people_born_in_the_year_of_the_rat_or_horse_are_hot_scutellaria_baicalensis_mudanpi_tang_and_dry_astragalus_maitong_tang'), Lang::get('people_born_in_the_year_of_the_ox_and_the_year_of_the_goat_are_wet_jiu_gan_ling_ze_tang_and_cold_si_yi_chai_gui_tang'), Lang::get('people_born_in_the_year_of_the_tiger_or_monkey_have_the_constitution_of_fire_chai_shao_si_huang_tang_and_allergy_chai_hu_xian_du_li_zhong_tang'), Lang::get('people_born_in_the_year_of_the_rabbit_or_the_rooster_have_a_dry_astragalus_maitong_tang_and_hot_scutellaria_baicalensis_mudanpi_tang_constitution'), Lang::get('people_born_in_the_year_of_the_dragon_or_the_year_of_the_dog_are_cold_sibei_chai_gui_tang_and_wet_jiu_gan_ling_ze_tang'), ''];
    }

    public static function getBirthTimeStand(){
        return [Lang::get('people_born_between_2300_and_100_have_strong_courage_and_fire'), Lang::get('people_born_between_300_and_500_have_weak_lung_qi'), Lang::get('people_born_between_500_and_700_bad_colon_easy_to_get_diarrhea'), Lang::get('bad_stomach'), Lang::get('people_born_between_700900_have_bad_stomachs'), Lang::get('people_born_between_900_and_1100_have_bad_spleen'), Lang::get('people_born_between_11_and_13_oclock_have_a_strong_heart_and_are_prone_to_fire'), Lang::get('people_born_between_13_and_15_oclock_have_bad_intestines_and_poor_absorption'), Lang::get('people_born_between_15_and_17_oclock_have_bad_bladder_and_frequent_urination'), Lang::get('kidney_deficiency_in_people_born_between_17_and_19_oclock'), Lang::get('people_born_between_19_and_21_oclock_are_prone_to_fire'), Lang::get('people_born_between_21_and_23_oclock_have_poor_metabolism_low_immunity_and_slow_flow_of_blood_and_qi')];
    }

    public static function getBirthTime(){
        return [
            Lang::get('time_option1'),
            Lang::get('time_option2'),
            Lang::get('time_option3'),
            Lang::get('time_option4'),
            Lang::get('time_option5'),
            Lang::get('time_option6'),
            Lang::get('time_option7'),
            Lang::get('time_option8'),
            Lang::get('time_option9'),
            Lang::get('time_option10'),
            Lang::get('time_option11'),
            Lang::get('time_option12'),
        ];
    }

    public static function getYearEndStand() {
        return [Lang::get('people_born_with_year_number_0_are_prone_to_intestinal_polyps_and_hemorrhoids'), Lang::get('people_born_with_the_year_number_1_are_susceptible_to_pulmonary_fluid_retention_lung_deficiency_cervical_spondylosis_etc'), Lang::get('people_born_with_year_number_2_are_prone_to_prostate_problems_cystitis_and_urethritis'), Lang::get('people_born_with_year_number_3_are_prone_to_kidney_stones_or_cysts'), Lang::get('people_born_with_year_number_4_are_prone_to_biliary_polyps_gallstones_or_liver_cysts'), Lang::get('people_born_with_the_year_number_5_are_susceptible_to_liver_cysts_hepatic_hemangiomas_or_liver_cancer'), Lang::get('people_born_with_the_year_number_6_are_prone_to_cervical_spondylosis_and_gastrointestinal_problems'), Lang::get('people_born_with_year_number_7_are_prone_to_heart_disease_and_valvular_insufficiency'), Lang::get('people_born_with_year_number_8_are_prone_to_gastritis_stomach_ulcers_mouth_ulcers_and_toothaches'), Lang::get('people_born_with_year_number_9_are_prone_to_gastroenteritis_diarrhea_and_constipation')];
    }

    public static function getAnimalOrder(){
        return [Lang::get('mouse'), Lang::get('cow'), Lang::get('tiger'), Lang::get('rabbit'), Lang::get('dragon'), Lang::get('snake'),Lang::get('horse'), Lang::get('sheep'), Lang::get('monkey'), Lang::get('chicken'), Lang::get('dog'), Lang::get('pig')];
    }

    public static function getResultTitle(){
        return [
            'title_1' => Lang::get('me_is_there_any_benefit_to_doing_this'),
            'title_2' => Lang::get('me_has_the_will_to_do_it'),
            'title_3' => Lang::get('ta_thinks_me'),
            'title_4' => Lang::get('tas_thoughts_on_the_matter_at_this_time'),
            'title_5' => Lang::get('ta_has_the_will_to_do_this_or_not'),
            'title_6' => Lang::get('the_amount_of_time_ta_is_willing_to_do_the_job'),
            'title_7' => Lang::get('the_attitude_of_ta'),
            'title_8' => Lang::get('the_attitude_of_me'),
            'title_9' => Lang::get('overall_ease_of_me_doing_it'),
            'title_10' => Lang::get('mes_thoughts_on_the_matter_at_this_time'),
        ];
    }
}
